home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 14535 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: news.emf.net!johnm
  2. From: johnm@mitchell.org (John D. Mitchell)
  3. Newsgroups: comp.object,comp.lang.c++,comp.lang.java
  4. Subject: Re: Java: What's the Big Deal?
  5. Followup-To: comp.lang.java
  6. Date: 31 Mar 1996 05:24:58 GMT
  7. Organization: Mitchell Research
  8. Message-ID: <slrn4ls5to.hlk.johnm@mitchell.org>
  9. References: <4i40ik$9dt@news4.digex.net> <milodDo5yDE.H8B@netcom.com> <1996Mar14.124235.9729@friend.kastle.com> <4iane3$dr4@news4.digex.net> <E91P8DA2VPSxEw+C@almide.demon.co.uk> <4ihuhp$gi5@stuyvesant.denhaag.dataweb.net> <314CACBC.503E@mindspring.com> <3153f313.19668948@news.iol.it>
  10. Reply-To: johnm@mitchell.org
  11. NNTP-Posting-Host: 205.149.2.3
  12. X-Newsreader: slrn (0.8.4)
  13.  
  14. In article <3153f313.19668948@news.iol.it>, Nik Shaylor - Florence - Italy
  15. wrote:
  16. [...]
  17. >> will certainly be a performance problem 
  18. >>compared to well written C++ programs.
  19.  
  20. Myth.
  21.  
  22.  
  23. >If you do not not use the new operator (a lot) do you still make
  24. >garbage? I presume that the stack frames are not allocated from the
  25. >heap.
  26.  
  27. It depends on the language.  Of course, it's easy to have 'hidden' garbage
  28. being generated in C++ just by using somebody's library package.
  29.  
  30.  
  31. >If that is true is it not the case that a gc would be faster than
  32. >malloc/free?
  33.  
  34. The general consensus is that it depends on a lot of factors.
  35.  
  36. There's been a lot of discussion about this on the GC mailing list and, if
  37. I recall correctly, a GC FAQ is being put together.
  38.  
  39. You might was to start by checking out Paul Wilson's GC survey papers,
  40. http://www.cs.utexas.edu/users/oops/papers.html
  41.  
  42.  
  43. Hope this helps,
  44.         John
  45.  
  46.